package com.ray.auth.system.table.customMapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ray.auth.system.table.entity.Button;
import com.ray.auth.system.table.entity.ButtonExample;
import com.ray.auth.system.vo.MenuParams;

public interface CustomButtonMapper {
	/**
	 * 
	 * @param linkId 关联ID
	 * @param linkType 关联类型
	 * @param isDelete 是否删除状态
	 * @return
	 */
	List<Button> selectButtonByLink(@Param("linkId") String linkId,@Param("appId") String appId,@Param("linkType")String linkType,@Param("status") String status,@Param("isDelete")String isDelete);
	/**
	 * 
	 * @param linkId 关联ID
	 * @param linkType 关联类型
	 * @param menuId 菜单ID
	 * @param isDelete 是否删除状态
	 * @return
	 */
	List<Button> selectButtonByLinkWithMenuId(@Param("linkId") String linkId,@Param("linkType")String linkType,@Param("menuId")String menuId,@Param("status") String status,@Param("isDelete")String isDelete);
    
	 /**
     * 用户拥有的按钮
     * @param example
     * @param params
     * @return
     */
	List<Button> selectMyButton(@Param("example") ButtonExample example,@Param("params")MenuParams params);
	/**
     * 角色拥有的按钮
     * @param example
     * @param params
     * @return
     */
	List<Button> selectRoleButton(@Param("example") ButtonExample example,@Param("params")MenuParams params);
}